package com.example.travelapplication.entity;

import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.Ignore;
import androidx.room.PrimaryKey;

@Entity(tableName = "att")
public class Attraction {
    @PrimaryKey(autoGenerate = true)
    public int attId;

    @ColumnInfo(name = "category")
    public int category;

    @ColumnInfo(name = "title")
    public String title;

    @ColumnInfo(name = "location")
    public String location;

    @ColumnInfo(name = "description")
    public String description;

    @ColumnInfo(name = "bed")
    public int bed;

    @ColumnInfo(name = "guide")
    public boolean guide;

    @ColumnInfo(name = "score")
    public double score;

    @ColumnInfo(name = "pic")
    public String pic;

    @ColumnInfo(name = "wifi")
    public boolean wifi;

    @ColumnInfo(name = "price")
    public double price;

    @Ignore
    public Attraction(int category, String title, String location, String description, int bed, boolean guide, double score, String pic, boolean wifi, double price) {
        this.category = category;
        this.title = title;
        this.location = location;
        this.description = description;
        this.bed = bed;
        this.guide = guide;
        this.score = score;
        this.pic = pic;
        this.wifi = wifi;
        this.price = price;
    }

    public Attraction() {
    }
}
